@import "./reset.scss";
@import "../utils/iconfont/iconfont.css";
@function getvw($w) {
  @return $w / 750 * 100 + vw;
}

@function getfs($w) {
  @return $w / 750 * 100 + vmin;
}

@keyframes bannerMove {
  10% {
    transform: translate(0);
  }
  40%,
  50% {
    transform: translate(calc(-100% / 3));
  }
  90%,
  100% {
    transform: translate(calc(-100% / 3 * 2));
  }
}

.wrap {
  position: relative;
  width: getvw(750);
  padding-bottom: getvw(140);
  header {
    box-sizing: border-box;
    padding: 0 getvw(20);
    width: 100%;
    height: getfs(150);
    display: flex;
    justify-content: space-between;
    align-items: center;
    .logo {
      .logoImgBOX {
        width: getfs(100);
      }
    }
    .searchBox {
      background-color: #fff;
      border: 1px solid orange;
      border-radius: getvw(20);
      width: getvw(300);
      height: getvw(50);
      display: flex;
      justify-content: center;
      align-items: center;
      input {
        border-radius: getvw(20);
        width: 75%;
        border: none;
        text-indent: 1em;
        font-size: getfs(12);
        outline: none;
      }
      .iconSear {
        line-height: getvw(50);
        color: orange;
        font-weight: bold;
      }
    }
    .locationBox {
      position: relative;
      select {
        width: getvw(140);
        height: getvw(60);
        padding: getvw(5) getvw(15);
        border: 1px solid orange;
        font-size: getfs(24);
        font-weight: bold;
        appearance: none;
        outline: none;
      }
      .iconDown {
        position: absolute;
        right: getvw(10);
        top: 50%;
        transform: translateY(-50%);
        color: orange;
        font-size: getfs(14);
        pointer-events: none;
      }
    }
    .header_back {
      width: getvw(123);
      height: getvw(57);
      border: 1px solid orange;
      border-radius: 15%;
      text-align: center;
      line-height: getvw(57);
      a {
        font-weight: bold;

        font-size: getfs(30);
      }
    }
    .header_title {
      h1 {
        font-weight: bold;
        font-size: getfs(30);
      }
    }

    .right_info {
      position: relative;

      .iconMess {
        font-size: getfs(70);
        color: orange;
      }
      .info_num {
        position: absolute;
        top: getvw(-10);
        right: getvw(50);
        width: getvw(40);
        height: getvw(40);
        border-radius: 50%;
        background-color: red;
        color: #fff;
        font-size: getfs(14);
        text-align: center;
        line-height: getvw(40);
      }
    }
  }
  main {
    box-sizing: border-box;
    padding: 0 getvw(20);
    width: 100%;
    .banner {
      width: 100%;
      height: getvw(285);
      overflow: hidden;
      .imgBox_banner {
        width: 300%;
        height: 100%;
        display: flex;
        animation: bannerMove 3s infinite alternate linear;
        .imgBox {
          width: calc(100% / 3);
          height: 100%;
        }
      }
    }
    .webBox {
      width: 100%;
      margin-top: getvw(30);
      .topTitle {
        margin-bottom: getvw(30);
        width: 100%;
        height: getvw(60);
        display: flex;
        justify-content: space-between;
        align-items: center;
        .title {
          display: flex;
          justify-content: center;
          align-items: center;
          .iconGroup {
            font-size: getfs(58);
            color: orange;
            margin: 0 getvw(10);
          }
          h2 {
            font-size: getfs(34);
            color: #000;
          }
        }
        .moreBox {
          font-size: getfs(28);
          color: #000;
          .iconMore {
            color: orange;
            font-size: getfs(30);
          }
        }
      }
    }
  }
  footer {
    margin-top: getvw(20);
    position: fixed;
    bottom: 0;
    width: 100%;
    height: getfs(120);
    background-color: #fff;
    ul {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: space-between;
      align-items: center;
      li {
        width: calc(100% / 4);
        height: 100%;
        a {
          display: block;
          width: 100%;
          height: 100%;
          display: flex;
          flex-direction: column;
          align-items: center;
          justify-content: center;
          .iconfont_footer {
            text-align: center;
            // font-size: getvw(50);
            font-size: getfs(40);
            color: orange;
          }
          span {
            margin-top: getvw(10);
            color: #000;
          }
        }
      }
    }
  }
}
